<?php

namespace App\Core;

interface IdentityInterface
{

    public static function findIdentity($id);

    public function getId();

    public function getUserId();

    public function getJwtExpiredTime() : int;

    public function setJwtExpiredTime($expiredTime);

    public function getUsername() : string;

    public function afterLogin();

    public function getJwtData() : array;

    public static function parseJwtData(array $jwtData);

}
